﻿<!DOCTYPE html>
<html>
<head>
<title>长者信息查询</title>
<meta charset="utf-8">
<meta name="keywords" content="短照中心-湘潭市康复养老中心;">
<meta name="description" content="短照中心-湘潭市康复养老中心;">
<link rel="stylesheet" rev="stylesheet" href="css/framepage.css" type="text/css" media="screen,print" />
<link rel="stylesheet" type="text/css" href="js/waitBox/wait.css">
<script src="js/vue.js"></script>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/JSON-js-master/json2.js"></script>
<script src="js/waitBox/wait.js"></script>
<script src="js/purl.js"></script>
<style type="text/css">
@media print {
.no_print {
	display: none;
}
@page {
margin: 0 10mm 0;
}
.form_div ul {
	margin-top: 0;
}
}
</style>
</head>

<body style="background:rbg(216,216,216);" onLoad="findElder();">
<div class="form_div">
  <h3>长者信息查询</h3>
  <ul>
    <li><span class="tit" style="width:70px;">选择对象：</span></li>
    <li style="line-height:36px;"><span>
      <input type="text" placeholder="请输入长者姓名或身份证" id="searchVal" style="width:220px;position:absolute;top:0;left:0;"/>
      </span><span style="position:absolute;left:235px;top:0;">
      <input type="button" value="查询" class="button_s button1" onclick="findElderInfoByType(1);" style="height:36px;" />
      </span><span style="position:absolute;left:335px;top:0;">
      <input type="button" value="按楼层查询" class="button_s button1" onclick="openFloorPage();" style="height:36px;width:120px;" />
      </span></li>
  </ul>
  <div style="clear:both;"></div>
  <div style="margin:0;padding:0;" id="vue_vm_list">
    <div style="margin:0;padding:0;" v-for="todo in todos">
      <h3 v-if="todo.elderBeHospitalForm!=null">入院号：{{todo.elderBeHospitalForm.beNumber}}</h3>
      <h3>长者：</h3>
      <ul v-if="todo.beHospitalFeeForm!=null && todo.beHospitalFeeForm.isFinancialCs==1">
        <li><span class="tit" style="width:70px;">金融客户：</span></li>
        <li><span>银行：{{todo.beHospitalFeeForm.bankName}}</span></li>
        <li><span>联系人：{{todo.beHospitalFeeForm.contactName}}</span></li>
        <li><span>联系电话：{{todo.beHospitalFeeForm.contactPhoneNumer}}</span></li>
      </ul>
      <ul>
        <li style="width:70px;"><span>{{todo.elder.name}}</span></li>
        <li style="width:240px;"><span>身份证号：{{todo.elder.cardId}}</span></li>
        <li><span>{{todo.elderBeHospitalForm.beStatus==2?'已出院':todo.elderBeHospitalForm.beStatus==1?'正在出院':'住院中'}}</span></li>
        <li><span>住院开始日期：{{todo.elderBeHospitalForm.beDate}}</span></li>
        <li v-if="todo.beStatus==2"><span>住院结束日期：{{todo.elderBeHospitalForm.outDate}}</span></li>
        <li v-if="todo.building!=null"><span>{{todo.building.buildingName}} {{todo.floor.floorName}} {{todo.room.roomNumber}}室 {{todo.bed.bedNumber}}床</span></li>
        <li><span style="color:#ff0000;">科室操作人：{{todo.subjectRoomManager}}</span></li>

        <!--<li v-if="todo.elderBeHospitalForm!=null"><span style="color:#ff0000;">-->
          <!--出院日期：{{(todo.elderBeHospitalForm && todo.elderBeHospitalForm.outDate)? todo.elderBeHospitalForm.outDate: '未出院'}}</span></li>-->
      </ul>
      <div style="clear:both;"></div>
      <h3>打印相关资料：</h3>
      <ul>
        <li style="width:30px;"><span></span></li>
        <li><span><a v-bind:href="getChepingUrl(todo.elder.elderId, todo.elder.name, todo.elder.cardId)" target="_blank">测评资料</a></span></li>
        <li><span><a v-bind:href="'2-1-1basedata-geren.html?elderId='+todo.elder.elderId" target="_blank">个人资料</a></span></li>
        <li><span><a v-bind:href="'2-1-1basedata-jiaren.html?elderId='+todo.elder.elderId" target="_blank">家属资料</a></span></li>
        <li><span><a v-bind:href="'2-1-1basedata-lianxi.html?elderId='+todo.elder.elderId" target="_blank">紧急联系人资料</a></span></li>
        <li v-if="todo.elderBeHospitalForm!=null"><span><a v-bind:href="'0zhuyang.html?elderBeHospitalId='+todo.elderBeHospitalForm.beHospitalId" target="_blank">住院资料</a></span></li>
        <li v-if="todo.elderBeHospitalForm!=null"><span><a v-bind:href="'0zhuanfang.html?elderId='+todo.elder.elderId" target="_blank">转房记录</a></span></li>
        <li v-if="todo.elderBeHospitalForm!=null"><span><a v-bind:href="'0blchuanwei_record.html?elderId='+todo.elder.elderId" target="_blank">保留床位记录</a></span></li>
      </ul>
    </div>
  </div>
  <div style="clear:both;"></div>
  <div style="margin:0;padding:0;" id="money_description" style="display:none;">
  <h3>现存金额：</h3>
  <ul>
    <li><span class="tit" style="width:100px;">已缴押金：</span></li>
    <li><span id="pledgePay"></span>
      <input id="pledgePay_input" type="hidden" value="">
    </li>
  </ul>
  <div style="margin:0;padding:0;" id="vue_vm_list_elderOutCost">
    <div style="margin:0;padding:0;" v-for="todo in todos">
      <ul>
        <li><span class="tit" style="width:100px;">钱包余额：</span></li>
        <li><span>{{todo.walletBalance}}元</span></li>
      </ul>
      <ul>
        <li><span class="tit" style="width:100px;">饭卡余额：</span></li>
        <li><span>{{todo.mealCardBalance}}元</span></li>
      </ul>
      <ul>
        <li><span class="tit" style="width:100px;">合计：</span></li>
        <li><span>{{getBalanceTotal(todo)}}元</span></li>
      </ul>
      <div style="clear:both;"></div>
      <h3>未结清费用：</h3>
      <ul>
        <li><span class="tit">赔偿金：</span></li>
        <div style="margin:0;padding:0;" v-for="elderCompDescForm in todo.elderCompDescForms">
          <li><span>{{elderCompDescForm.assetName}}：{{elderCompDescForm.price}}X{{elderCompDescForm.compQuantity}}，
            {{(elderCompDescForm.price*elderCompDescForm.compQuantity).toFixed(2)}}元</span></li>
        </div>
        <li><span>合计：{{getElderCompDescFormsTotal(todo.elderCompDescForms)}}元</span></li>
      </ul>
      <ul>
        <li><span class="tit">欠费：</span></li>
        <div style="margin:0;padding:0;" v-for="arrearageDescForm in todo.arrearageDescForms">
          <li><span>{{arrearageDescForm.arrearageDesc}}：{{arrearageDescForm.price}}X{{arrearageDescForm.arrearageQuantity}}，
            {{(arrearageDescForm.price*arrearageDescForm.arrearageQuantity).toFixed(2)}}元</span></li>
        </div>
        <li><span>合计：{{getArrearageDescFormsTotal(todo.arrearageDescForms)}}元</span></li>
      </ul>
      <ul>
        <li><span class="tit">待结清（现存金额 - 未结清费用）：</span></li>
        <li><span style="color:#ff0000;">{{getRemainTotalText(todo)}}</span></li>
      </ul>
    </div>
  </div>
</div>
<div style="clear:both;"></div>
<div style="margin:0;padding:0;" id="pledge_description" style="display:none;">
<h3>押金情况：</h3>
<ul>
  <li><span class="tit" style="width:100px;">押金已退</span></li>
</ul>
</div>
<div class="for_ie_div"><!--为兼容IE-->
  <ul>
    <li>
      <input type="button" value="打印" class="button button1" onclick="window.print();" style="height:38px;"/>
    </li>
  </ul>
</div>
<div style="clear:both;"></div>
<script src="js/common.js"></script> 
<script src="js/common_function.js"></script> 
<script src="js/busi/elder_query.js"></script> 
<script src="js/busi/building_select.js"></script>
<script src="js/busi/floor_select.js"></script>
<script src="js/busi/be_hospital_fees.js"></script>
</body>
</html>